package com.atguigu.guli.service.base.feign;

import com.atguigu.guli.service.base.result.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;

@FeignClient(value = "service-edu")
public interface EduFeignClient {
    @GetMapping("/api/edu/course/getCourseDto/{courseId}")
    public R getCourseDto(@PathVariable String courseId) ;

    @PutMapping("/api/edu/course/updateSales/{courseId}")
    public R updateSales(@PathVariable String courseId) ;


}
